package com.crawler.search.constant;

import java.util.HashSet;
import java.util.Set;

public class QuerierMapper {
    public static final String PAGE_SIZE = "pageSize";
    public static final String PAGE_NO = "pageNo";
    public static final String KEYWORD = "keyword";
    public static final String MUST = "must";
    public static final String MUST_NOT = "mustNot";
    public static final String ORDER = "order";
    public static final String SORT_BY = "sortBy";
    public static final String BEGIN_TIME = "beginTime";
    public static final String END_TIME = "endTime";
    public static final String TIME = "time";
    public static final String FIELD_CREATE_TIME = "create_time";
    public static final String ASC = "ASC";
    public static final String DESC = "DESC";
    public static final String SENTIMENT = "sentiment";
    public static final String DISTINCT = "distinct";
    public static final String FORMAT = "format";
    public static final String HIGHLIGHT = "highlight";
    public static final String ALL_TEXT = "all_text";

    public static Set<String> keywords = new HashSet<>();

    static {
        keywords.add(KEYWORD);
        keywords.add(PAGE_NO);
        keywords.add(PAGE_SIZE);
        keywords.add(MUST);
        keywords.add(MUST_NOT);
        keywords.add(ORDER);
        keywords.add(SORT_BY);
        keywords.add(BEGIN_TIME);
        keywords.add(END_TIME);
        keywords.add(SENTIMENT);
    }
}

